package com.mywebsite.core.client.mvp;

import com.google.gwt.activity.shared.Activity;
import com.google.gwt.activity.shared.ActivityMapper;
import com.google.gwt.place.shared.Place;

public class AppActivityMapper implements ActivityMapper {

	@SuppressWarnings("rawtypes")
	@Override
	public Activity getActivity(Place place) {
		Activity activity = null;
		if(place instanceof ActivityPlace){
			activity = ((ActivityPlace)place).getActivity();
		}
		return activity;
	}

}
